package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户邀请
 * </p>
 *
 * @author Lbx
 * @since 2021-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdUserInvite对象", description = "用户邀请")
public class JdUserInvite extends Model<JdUserInvite> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "接收用户")
    private Integer receiveUser;

    @ApiModelProperty(value = "赠送用户")
    private Integer sendUser;

    @ApiModelProperty(value = "邀请时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @ApiModelProperty(value = "h5接入时间戳")
    private String h5Key;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
